﻿namespace SvnLogParser
{
    public struct ProcessResult
    {
        public ProcessResult(int exitCode, string standardOutput, string errorOutput, bool isTimeout)
            : this()
        {
            IsTimeout = isTimeout;
            ErrorOutput = errorOutput;
            StandardOutput = standardOutput;
            ExitCode = exitCode;
        }

        public bool IsTimeout { get; private set; }
        public int ExitCode { get; private set; }
        public string StandardOutput { get; private set; }
        public string ErrorOutput { get; private set; }

        public override string ToString()
        {
            return string.Format("standardOutput: {0}, errorOutput: {1}, exitCode: {2}",
                StandardOutput,
                ErrorOutput,
                ExitCode);
        }
    }
}